package com.createidea.cms.service.producttype;

import java.util.List;

import com.createidea.cms.dao.producttype.ProductTypeDao;
import com.createidea.cms.to.ProductTypeTo;

public class ProductTypeServiceImpl implements ProductTypeService {
    private ProductTypeDao productTypeDao;

	public ProductTypeDao getProductTypeDao() {
		return productTypeDao;
	}

	public void setProductTypeDao(ProductTypeDao productTypeDao) {
		this.productTypeDao = productTypeDao;
	}

	@Override
	public List<ProductTypeTo> getProductTypes() {
		// TODO Auto-generated method stub
		return productTypeDao.getProductTypes();
	}

	@Override
	public void saveProductType(ProductTypeTo productType) {
		// TODO Auto-generated method stub
		productTypeDao.saveProductType(productType);
	}

	@Override
	public ProductTypeTo getProductTypeById(String productTypeId) {
		// TODO Auto-generated method stub
		return productTypeDao.getProductTypeById(productTypeId);
	}
    
    
}
